/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cl.darksigns.webstat.back.ejb;

import cl.darksigns.webstat.back.dao.WebStatDao;
import cl.darksigns.webstat.back.exception.WebStatException;
import javax.ejb.Stateless;
import org.apache.log4j.Logger;


/**
 *
 * @author _ViKtOr
 */
@Stateless
public class StatBussinesBean implements StatBussinesRemote, StatBussinesLocal {
    Logger logger = Logger.getLogger(StatBussinesBean.class);
    public boolean validateUser(String UserName, String userPwd) throws WebStatException {
        logger.info("Validating user: " + UserName);
        WebStatDao dao = new WebStatDao();
        return dao.validateUser(UserName, userPwd);
    }
    
    // Add business logic below. (Right-click in editor and choose
    // "EJB Methods > Add Business Method" or "Web Service > Add Operation")
 
}
